package cn.zjxiliu.lib_login;

/**
 * Created by jessie on 2018/11/21.
 */

public class LoginConfig {

    private String baseRequestUrl;

    //<!--登录界面是否含有返回的X按钮-->
    private boolean isShowBackBtn = false;

    // <!--设置背景，可自定义设置背景图片 图片需要放在属性为drawable的目录下面，只需要输入名称就行   如：background.png的图片，则<backgroundImg value="background"/> -->
    private int backgroundImg = 0;

    //<!--logo图标的名称 图片需要放在属性为drawable的目录下面，只需要输入名称就行   如：logo.png的图片，则<logo value="logo"/>-->
    private int logo = 0;

    //<!--是否使用的为pad，即大屏，默认使用phone的界面模式-->
    private boolean isUsePad = false;

    //<!--登录类型：0. 只使用手机验证码登录  1.只使用账号密码登录  2.使用手机验证码和账号密码两种方式登录 默认为2 -->
    private String loginType = "2";

    //<!--是否手机验证码登录界面优先于账号密码页面展现 默认false，即账号密码登录优先显示-->
    private boolean isPhoneAuthLoginViewFirst = false;

    //<!--是否隐藏注册入口, 默认false-->
    private boolean isHideRegister = false;

    //<!--是否隐藏忘记密码入口，默认false，即不隐藏-->
    private boolean isHideForgetPwd = false;

    //<!--当设置该字段时，当sdk登录成功，便会intent跳转到该界面，不设置该字段时，即默认finish登录界面。value值的内容必须包含应用包名，如跳转到com.guahao.app包名下的MainActivity界面，则<viewShowWhenLoginFinished value="com.guahao.app.MainActivity"/>-->
    private String viewShowWhenLoginFinished;

    //<!--判定当注册成功时，是否直接结束登录流程，还是跳转到登录页面重新走登录操作，默认为true，即结束登录流程-->
    private boolean isFinishedWhenRegisterSuccess = true;


    public String getBaseRequestUrl() {
        return baseRequestUrl;
    }

    public void setBaseRequestUrl(String baseRequestUrl) {
        this.baseRequestUrl = baseRequestUrl;
    }

    public boolean isShowBackBtn() {
        return isShowBackBtn;
    }

    public void setShowBackBtn(boolean showBackBtn) {
        isShowBackBtn = showBackBtn;
    }

    public int getBackgroundImg() {
        return backgroundImg;
    }

    public void setBackgroundImg(int backgroundImg) {
        this.backgroundImg = backgroundImg;
    }

    public int getLogo() {
        return logo;
    }

    public void setLogo(int logo) {
        this.logo = logo;
    }

    public boolean isUsePad() {
        return isUsePad;
    }

    public void setUsePad(boolean usePad) {
        isUsePad = usePad;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public boolean isPhoneAuthLoginViewFirst() {
        return isPhoneAuthLoginViewFirst;
    }

    public void setPhoneAuthLoginViewFirst(boolean phoneAuthLoginViewFirst) {
        isPhoneAuthLoginViewFirst = phoneAuthLoginViewFirst;
    }

    public boolean isHideRegister() {
        return isHideRegister;
    }

    public void setHideRegister(boolean hideRegister) {
        isHideRegister = hideRegister;
    }

    public boolean isHideForgetPwd() {
        return isHideForgetPwd;
    }

    public void setHideForgetPwd(boolean hideForgetPwd) {
        isHideForgetPwd = hideForgetPwd;
    }

    public String getViewShowWhenLoginFinished() {
        return viewShowWhenLoginFinished;
    }

    public void setViewShowWhenLoginFinished(String viewShowWhenLoginFinished) {
        this.viewShowWhenLoginFinished = viewShowWhenLoginFinished;
    }

    public boolean isFinishedWhenRegisterSuccess() {
        return isFinishedWhenRegisterSuccess;
    }

    public void setFinishedWhenRegisterSuccess(boolean finishedWhenRegisterSuccess) {
        isFinishedWhenRegisterSuccess = finishedWhenRegisterSuccess;
    }
}
